<!doctype html>
<html>
<head>
  <script src="../../../webcomponentsjs/webcomponents.js"></script>
  <script>
    Polymer = {lazyRegister: true};
  </script>
  <link rel="import" href="../../polymer.html">
</head>
<body>
  <dom-module id="my-element">
    <template>
      es6
    </template>
  </dom-module>

   <script>
    class MyElement {
      beforeRegister() {
        this.is = 'my-element';
      }
    }

    Polymer(MyElement);
  </script>
 

<my-element></my-element>

</body>
</html>
